/**
 * FileName: IPurchaseDao
 * Author:   Molzx
 * Date:     2019/10/4 21:24
 * Description: 采购申请
 */
package com.dgut.dao;

import com.dgut.domain.Purchase;
import com.dgut.domain.PurchaseQuery;

import java.util.List;

/**
 * 〈采购申请〉
 *
 */
public interface IPurchaseDao {


    //查询所有记录所有字段
    List<Purchase> findAll(PurchaseQuery purchaseQuery);

    //分页 查询所有记录所有字段
    List<Purchase> findAllLimit(PurchaseQuery purchaseQuery);

    //查询记录总数
    Integer findAllCountLimit(PurchaseQuery purchaseQuery);

    //通过id 查询对应记录
    Purchase findById(String id);

    //更新记录信息
    Integer updatePurchase(Purchase purchase);

    //保存插入记录信息
    Integer savePurchase(Purchase purchase);

    //根据id删除记录
    Integer deletePurchase(String id);
}
